home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / uemlsrc.arc / printer.h < prev    next >
C/C++ Source or Header  |  1987-08-24  |  992b  |  36 lines

  1. /* Printer defines for Brother Letter quality printers */
  2.  
  3. #define BUFSIZE 512     /* 4 * 128 */
  4. #define MYBUF 1536      /* 3/4 of my print buffer */
  5. #define ESC 0x1b
  6. #define FORMFEED '\f'
  7. #define TAB 0x09
  8. #define SPACE  ' '
  9. #define NEWLINE  '\n'
  10. #define CR '\r'
  11. #define RS 0x1e
  12. #define US 0x1f
  13. #define RN 0x50
  14.  
  15. extern int tabsize;
  16. extern int isnprint;
  17. static int in;          /* file descriptor for low level printer I/O */
  18. static int spacing;
  19. static int temptab;
  20. static int linecnt;
  21. static char *prnstr;
  22. int pagecnt;
  23.  
  24. #define RESET Cprnout(ESC);Cprnout(CR);Cprnout(RN)
  25. #define NEWPAGE Cprnout(FORMFEED);Cprnout(CR)
  26. #define PRINT(arg) Cprnout((arg))
  27. #define SET_LMARG Cprnout(ESC);Cprnout(0x39);\
  28.         Cprnout(CR)
  29. #define SET_TAB Cprnout(ESC);Cprnout(0x31)
  30. #define SET_PITCH(arg) Cprnout(ESC);Cprnout(US);\
  31.         Cprnout((arg))
  32. #define SET_HEIGHT(arg) Cprnout(ESC);Cprnout(RS);\
  33.         Cprnout((arg))
  34. #define PRNOUT(arg1,arg2) Cprnout(ESC);Cprnout((arg1));\
  35.         Cprnout((arg2))
  36.